package com.carleasoft.mps.adu.business.role.bean.vo;


import java.util.Objects;

/**
 * <p>Description: userRole 角色vo</p>
 * @since 2020-04-28
 * @author ztm
 */
public class UserRoleInfoVo {
    /**
     * 角色编码
     */
    private String roleCode;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 角色类型（0-超级管理员角色，1-系统管理员角色，2-组织及组织分类角色，3-组织内使用角色，4-专属自定义默认角色，5-系统默认角色）
     */
    private Integer roleType;
    /**
     * 创建人名称
     */
    private String createPersonName;
    /**
     * 备注
     */
    private String remark;


    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }

    public String getCreatePersonName() {
        return createPersonName;
    }

    public void setCreatePersonName(String createPersonName) {
        this.createPersonName = createPersonName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserRoleInfoVo that = (UserRoleInfoVo) o;
        return Objects.equals(roleCode, that.roleCode) &&
                Objects.equals(roleName, that.roleName) &&
                Objects.equals(roleType, that.roleType) &&
                Objects.equals(createPersonName, that.createPersonName) &&
                Objects.equals(remark, that.remark);
    }

    @Override
    public int hashCode() {
        return Objects.hash(roleCode, roleName, roleType, createPersonName, remark);
    }
}
